//
//  DNBaseViewController.swift
//  LunalerApp
//
//  Created by 露乐ios on 2018/2/6.
//  Copyright © 2018年 露乐ios. All rights reserved.
//

import UIKit

class DNBaseViewController: UIViewController {

    
    class func defaultViewController() -> DNBaseViewController
    {
        return self.init()
    }
    
    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
        self.initUI()
        self.initViewModel()
        
        // 监听网络状态改变
        
        
    }
    
    func initUI(){/**子类实现**/}
    
    func initViewModel(){/**子类实现**/}
    
    override func viewDidAppear(_ animated: Bool) {
        super.viewDidAppear(animated)
        #if DEBUG
            print("当前VC-----\(self)")
        #else
        #endif
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destinationViewController.
        // Pass the selected object to the new view controller.
    }
    */

}
